package org.example.service;

import org.apache.dubbo.common.stream.StreamObserver;
import org.example.bean.Store;

public interface StoreService {

    // UNARY
    Store getStore(String storeId);

    // SERVER-STREAMING
    default void getStoresServerStream(String storeId, StreamObserver<Store> responseObserver) {

    }

    // CLIENT-STREAMING
    default StreamObserver<Store> getStoresClientStream(StreamObserver<Store> responseObserver) {
        return responseObserver;
    }
}
